<%-- 
    Document   : register
    Created on : May 10, 2011, 12:32:55 PM
    Author     : mattcarr
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Register</h1>

        <%
                    if (request.getParameter("error") != null) {
                        out.println("<div>an error occured processing registration<br/><br/></div>");
                    }

                    if (request.getParameter("success") != null) {
                        out.println("<div>you have been registered successfully<br/><br/></div>");
                    }
        %>

        <form method="post" action="RegisterCustomer">
            name:<input type="text" name="na"><br/>
            surname:<input type="text" name="surna"><br/>
            email address:<input type="text" name="email"><br/>
            password:<input type="password" name="pass"><br/>
            password confirm:<input type="password" name="passConf"><br/>
            <input type="submit" value="Register"/>
        </form>
    </body>
</html>
